import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/Home'
import NewsList from '@/components/newslist/NewsList'
import News from '@/components/newscontent/News'
import NewsInfo from '@/components/newsinfo/NewsInfo'
import PhotoList from '@/components/photolist/photolist'

Vue.use(Router)

export default new Router({
  // linkActiveClass: 'mui-acitve',
  routes: [
    {
      path: '/',
      redirect: '/home'
    },{
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/news/newslist',
      component: NewsList
    },
    {
      path: '/news/content',
      component: News,
    },
    {
      path: '/news/newsinfo/:id',
      name: 'newsinfo',
      component: NewsInfo
    },
    {
      path: '/photo/photolist',
      component: PhotoList
    }
  ]
})
